import JSEncrypt from 'jsencrypt' 

/* // 这里是公钥 */
let publicKey = `MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCCxWdCAw2AMsfzu4L9Ikhmf2O3dfZSczdDrEAr
wuJ5WC7KxKCIzzf8QOi5lIOFB04qj+A11cdTTGOY7McGb99omzaPy5tzgXjWq1o/9VMAdHZMqsZ/
LO5epLVmgzLPzJMUEwqGfIb3vGup6dttyAz4GBIRlnkNeEU/lEZ0e621lQIDAQAB`
// let privateKey = '这里是封装的私钥'
//加密方法
 export function  RSAencrypt(pas){
    //实例化jsEncrypt对象
    let jse = new JSEncrypt();
    //设置公钥
    jse.setPublicKey(publicKey);
    // console.log('加密：'+jse.encrypt(pas))
    return jse.encrypt(pas);
  }




